package com.yidu.qianfeng.service.impl;

import com.yidu.qianfeng.common.bean.check.Check;
import com.yidu.qianfeng.mapper.CheckMapper;
import com.yidu.qianfeng.mapper.EmpInfoMapper;
import com.yidu.qianfeng.service.CheckBizInter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("checkBizImpl")
public class CheckBizImpl implements CheckBizInter {
    @Resource(name = "checkMapper")
    private CheckMapper dao;
    @Override
    public int insertcheck(Check check) {
        return dao.insertcheck(check);
    }

    @Override
    public List<Check> getAllCheck(int page, int limit) {
        int count=(page-1)*limit;
        return dao.getAllCheck(count,limit);
    }

    @Override
    public int getcountCheck(String mid) {
        return dao.getcountCheck(mid);
    }

    @Override
    public int updatecheckcount(Check check) {
        return dao.updatecheckcount(check);
    }

    @Override
    public int getallcheck() {
        return dao.getallcheck();
    }

    @Override
    public int deletecheck(String check_id) {
        return dao.deletecheck(check_id);
    }

    @Override
    public List<Check> getoneCheck(String check_waybill_consign_num, int page, int limit) {
        int count=(page-1)*limit;
        return dao.getoneCheck(check_waybill_consign_num,count,limit);
    }

    @Override
    public int updatecheckcount1(String check_waybill_consign_num, int check_count) {

        return dao.updatecheckcount1(check_waybill_consign_num,check_count);
    }

    @Override
    public List<Check> selectallone() {
        return dao.selectallone();
    }

    @Override
    public int updateload(String check_id, String check_car_loading) {
        return dao.updateload(check_id,check_car_loading);
    }

    @Override
    public List<Check> selectallyuju(String check_waybill_consign_num, String check_car_loading, String shipper_com, String check_date, String waybill_reach_city) {

        return dao.selectallyuju(check_waybill_consign_num,check_car_loading,shipper_com,check_date,waybill_reach_city);
    }

    @Override
    public List<Check> getunloadCheck(int page, int limit) {
        int count=(page-1)*limit;
        return dao.getunloadCheck(count,limit);
    }

    @Override
    public int countunload(String check_waybill_consign_num) {
        return dao.countunload(check_waybill_consign_num);
    }

    @Override
    public int updatecheckcount2(Check check) {
        return dao.updatecheckcount2(check);
    }

    @Override
    public List<Check> getoneCheck1(String check_waybill_consign_num, int page, int limit) {
        int count=(page-1)*limit;
        return dao.getoneCheck1(check_waybill_consign_num,count,limit);
    }

    @Override
    public int updatecheckcount3(int check_unload_count, String check_waybill_consign_num) {
        return dao.updatecheckcount3(check_unload_count,check_waybill_consign_num);
    }

    @Override
    public int getallcheck1() {
        return dao.getallcheck1();
    }

    @Override
    public List<Check> selectallone1() {
        return dao.selectallone1();
    }

    @Override
    public List<Check> selectallyuju1(String check_waybill_consign_num, String check_car_loading, String shipper_com, String check_date, String waybill_reach_city) {
        return dao.selectallyuju1(check_waybill_consign_num,check_car_loading,shipper_com,check_date,waybill_reach_city);
    }

    @Override
    public int countdelivery(String check_waybill_consign_num) {
        return dao.countdelivery(check_waybill_consign_num);
    }

    @Override
    public int updatedeliverycount(Check check) {
        return dao.updatedeliverycount(check);
    }

    @Override
    public List<Check> getAlldelivery(int page, int limit) {
        int count=(page-1)*limit;
        return dao.getAlldelivery(count,limit);
    }

    @Override
    public int getalldelivery() {
        return dao.getalldelivery();
    }

    @Override
    public List<Check> getonedelivery(String check_waybill_consign_num, int page, int limit) {
        int count=(page-1)*limit;
        return dao.getonedelivery(check_waybill_consign_num,count,limit);
    }

    @Override
    public int updatedelivery(int check_delivery_count, String check_waybill_consign_num) {
        return dao.updatedelivery(check_delivery_count,check_waybill_consign_num);
    }

    @Override
    public List<Check> selectdelivery() {
        return dao.selectdelivery();
    }

    @Override
    public List<Check> selectallyuju2(String check_waybill_consign_num, String check_car_loading, String shipper_com, String check_date, String waybill_reach_city) {
        return dao.selectallyuju2(check_waybill_consign_num,check_car_loading,shipper_com,check_date,waybill_reach_city);
    }

    @Override
    public int countsigner(String check_waybill_consign_num) {
        return dao.countsigner(check_waybill_consign_num);
    }

    @Override
    public int updatesignercount(Check check) {
        return dao.updatesignercount(check);
    }

    @Override
    public List<Check> getAllsigner(int page, int limit) {
        int count=(page-1)*limit;
        return dao.getAllsigner(count,limit);
    }

    @Override
    public int getallsigner() {
        return dao.getallsigner();
    }

    @Override
    public List<Check> getonesigner(String check_waybill_consign_num, int page, int limit) {
        int count=(page-1)*limit;
        return dao.getonesigner(check_waybill_consign_num,count,limit);
    }

    @Override
    public int updatedigner(int check_sign_count, String check_waybill_consign_num) {
        return dao.updatedigner(check_sign_count,check_waybill_consign_num);
    }

    @Override
    public List<Check> selectsigner() {
        return dao.selectsigner();
    }

    @Override
    public List<Check> selectallyuju3(String check_waybill_consign_num, String check_car_loading, String shipper_com, String check_date, String waybill_reach_city) {
        return dao.selectallyuju3(check_waybill_consign_num,check_car_loading,shipper_com,check_date,waybill_reach_city);
    }
}
